//
// Created by 86186 on 2021/12/7.
//

#ifndef FFMPEG_OPENSLPLAYER_H
#define FFMPEG_OPENSLPLAYER_H

#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>
#include "string"

#include "../config.h"
#include "../decoder/AVPacketQueue.h"
#include "../decoder/DecodeResource.h"

using namespace std;

class ImplData;

class OpenSlPlayer {
public:
    OpenSlPlayer(AVPacketQueue *queue, DecodeResource *resource);
    ~OpenSlPlayer();
    void play();
    void pause();
    void stop();
    ImplData *data;
};


#endif //FFMPEG_OPENSLPLAYER_H
